var BasePlanePart = require('./../BasePlanePart');
var BaseBullet = require('./../../Bullet/BaseBullet');
var EnumBody = require('./../../Enum/EnumBody');
var EnumIE = require('./../../Enum/EnumIE');
cc.Class(
{
    extends: BasePlanePart,
    onCollisionEnter: function(other)
    {
        var body = this._super(other);
        if (null == body)
        {
            cc.error('发现不明物品请处理');
            return null;
        }

        if (EnumBody.BULLET == body.getEnumBody())
        {
            var baseBullet = other.node.getComponent(BaseBullet);
            /***是收到敌人的撞击 */
            if (null != baseBullet && EnumIE.E == baseBullet.getEnumIE())
            {
                this.node.destroy();
            }
        }
        return body;
    },

});